Skip to content

test(gates): add tests for 5 gate scripts (untested 40→35) - #1078

Merged
hyperpolymath merged 1 commit into
mainfrom
debt/pay-down-ratchet-2026-09-30
Sep 30, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
debt/pay-down-ratchet-2026-09-30

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Pays the gate-scripts-without-tests debt down by adding real, fail-capable tests for five gate scripts. The count and ceiling both drop from 40 to 35, measured from the Debtfile's own probe.

test gate assertions
scripts/tests/uuid-v7-test.sh check-uuid-v7.sh 11
scripts/tests/mustfile-structure-test.sh check-mustfile-structure.sh 11
scripts/tests/language-guide-test.sh check-language-guide.sh 13
scripts/tests/shell-test-suite-test.sh run-shell-test-suite.sh 14
scripts/tests/descriptile-policy-test.sh check-descriptile-policy.sh 11

Each test is shown to fail for the right reason, not just to pass: re-introducing each defect in the gate turns the matching assertion red. The uuid and descriptile gates scan scripts/*.sh, and that pathspec also covers scripts/tests/. So the fixtures those gates would flag are assembled at runtime and never appear literally in the test files.

Rebased onto 3a845452 (#1067). #1067 already landed the doc→adoc conversion and the 2→1 and 43→40 ceilings, so this PR now carries only the five tests and the 40→35 reduction.

Verification, run locally on the rebased head:

  • check-debtfile-structure.sh: rc=0
  • check-debt-ratchet.sh 3a845452: LOWERED gate-scripts-without-tests: 40 -> 35, rc=0
  • the 5 tests: 60/60 pass

🤖 Generated with Claude Code

https://claude.ai/code/session_01WPSJ7fBhVAMcpSffCBWUDo

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 1799ba0b-676a-4985-9c95-8671e2f0e09b

📥 Commits

Reviewing files that changed from the base of the PR and between 3a84545 and 072e91c.

📒 Files selected for processing (6)
  • .machine_readable/Debtfile.a2ml
  • scripts/tests/descriptile-policy-test.sh
  • scripts/tests/language-guide-test.sh
  • scripts/tests/mustfile-structure-test.sh
  • scripts/tests/shell-test-suite-test.sh
  • scripts/tests/uuid-v7-test.sh
 _____________________________________________________________________________________________________________________________
< I have a dream, that one day, my four little PRs will not be judged by their indentation but by the content of their logic. >
 -----------------------------------------------------------------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Adds a fail-capable test for each of check-uuid-v7, check-mustfile-structure,
check-language-guide, run-shell-test-suite and check-descriptile-policy
(60 assertions; each gate shown able to fail for the right reason).
gate-scripts-without-tests is re-measured at 35 and its count and ceiling
are lowered 40→35, so the ratchet tightens rather than merely holding.

Fixtures that the real uuid/descriptile gates would flag are assembled at
runtime, because the scripts/*.sh pathspec also covers scripts/tests/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WPSJ7fBhVAMcpSffCBWUDo
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@hyperpolymath
hyperpolymath force-pushed the debt/pay-down-ratchet-2026-09-30 branch from 036970b to 072e91c Compare September 30, 2026 14:07
@hyperpolymath hyperpolymath changed the title fix(debt): pay Debtfile down to its ceilings (Debt ratchet green) test(gates): add tests for 5 gate scripts (untested 40→35) Sep 30, 2026
@hyperpolymath
hyperpolymath merged commit 13baaa8 into main Sep 30, 2026
46 of 52 checks passed
@hyperpolymath
hyperpolymath deleted the debt/pay-down-ratchet-2026-09-30 branch September 30, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant